package com.fyales.android.juhejoke;

import android.app.Application;

import com.fyales.android.api.ApiClient;
import com.fyales.android.util.DevUtil;

/**
 * @author fyales
 * @since 16/1/29.
 */
public class JuheJokeApplication extends Application {

    private static JuheJokeApplication application;

    public static JuheJokeApplication getInstance() {
        return application;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        application = this;
        init();
    }

    private void init() {
        DevUtil.initialize(this);
        DevUtil.setDebug(true);

        ApiClient.init(this);   //网络初始化
    }
}
